package cn.swust.javaMail;

public class Main {
	public static void main(String[] args){  
        //这个类主要是设置邮件  
     MailSenderInfo mailInfo = new MailSenderInfo();   
     
     mailInfo.setToAddress("491404155@qq.com");   
     mailInfo.setSubject("欢迎你的！");   
     mailInfo.setContent("孙凉菜！！！！！");   
        //这个类主要来发送邮件  
     SimpleMailSender.sendByAsychMail(mailInfo);
     mailInfo.setToAddress("491404151@qq.com");   
     SimpleMailSender.sendByAsychMail(mailInfo);
     mailInfo.setToAddress("491404115@qq.com");   
     SimpleMailSender.sendByAsychMail(mailInfo);
     mailInfo.setToAddress("491404235@qq.com");   
     SimpleMailSender.sendByAsychMail(mailInfo);
     SimpleMailSender.sendByAsychMail(mailInfo);
     SimpleMailSender.sendByAsychMail(mailInfo);
     // SimpleMailSender sms = new SimpleMailSender();  
         //sms.sendTextMail(mailInfo);//发送文体格式   
        // sms.sendHtmlMail(mailInfo);//发送html格式  
     System.out.println("正在发送！");
   }  
}
